@function r($px) {
    @return $px/40*1rem;
}

html,
body {
    width: 100%;
    height: 100%;
}

@mixin imgs {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
}

@mixin imga {
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
}

@mixin imgh {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
}

@mixin transtions {
    -webkit-transition: all .2s;
    -moz-transition: all .2s;
    -ms-transition: all .2s;
    transition: all .2s;
}

@mixin danh {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@mixin liangh {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@mixin duiq {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.Beij::after {
    content: "";
    display: block;
    width: r(30);
    height: r(30);
    background: #fff;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: -1;
}

.hx::after {
    content: "";
    display: block;
    width: r(30);
    height: r(30);
    background: #fff;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: -1;
}

.resources {
    width: 100%;
    padding-bottom: r(96);
    //搜索
    .search_box {
        & input[type="checkbox"]:checked~.search_content {
            left: 0;
        }
        input {
            display: none;
        }
        .search_content {
            @include transtions;
            width: 100%;
            height: 100%;
            position: fixed;
            top: 0;
            left: -100%;
            bottom: 0;
            background: rgba(34,34,34,.9);
            z-index: 99;
            .search_content_box {
                width: r(600);
                margin: 0 auto;
                margin-top: r(20);
                .search_content_box_top {
                    display: flex;
                    justify-content: space-between;
                    .search_content_box_top_left {
                        width: r(52);
                        height: r(52);
                        overflow: hidden;
                        position: relative;
                        color: #b60005;
                        display: flex;
                        .icon-cha {
                            font-size: r(54);
                            line-height: r(52);
                            text-align: center;
                        }
                        img {
                            @include imgs;
                        }
                    }
                    .search_content_box_top_right {
                        width: r(520);
                        height: r(52);
                        position: relative;
                        overflow: hidden;
                        .input {
                            display: block;
                            width: r(520);
                            height: r(52);
                            background: none;
                            border-radius: r(30);
                            color: #fff;
                            border: 2px solid #fff;
                            padding: 0 r(20) 0 r(186);
                        }
                        .GIMC {
                            height: r(28);
                            top: 0;
                            bottom: 0;
                            margin: auto 0;
                            left: r(16);
                            position: absolute;
                            display: flex;
                            justify-content: flex-start;
                            overflow: hidden;
                            .GIMC_mirror {
                                color: #fff;
                                .icon-fangdajing {
                                    font-size: r(40);
                                    font-weight: bold;
                                    line-height: r(28);
                                }
                            }
                            .GIMC_name {
                                font-size: r(28);
                                color: #fff;
                                line-height: r(28);
                                margin-left: r(24);
                                margin-top: r(2);
                            }
                            .vertical {
                                .icon-iconfonticonshutiao {
                                    font-size: r(38);
                                    color: #fff;
                                    line-height: r(28);
                                    margin-left: r(4);
                                }
                            }
                        }
                    }
                }
                .search_content_box_content {
                    margin-top: r(50);
                    .PersonalPicture {
                        width: r(134);
                        height: r(128);
                        position: relative;
                        overflow: hidden;
                        margin: 0 auto;
                        margin-bottom: r(14);
                        border-radius: 50%;
                        img {
                            @include imgh;
                        }
                    }
                    .PersonalCenter {
                        width: r(250);
                        margin: 0 auto;
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        .PersonalCenter_name {
                            font-size: r(26);
                            color: #ffffff;
                            line-height: r(28);
                            width: r(80);
                        }
                        .center {
                            width: r(162);
                            height: r(32);
                            font-size: r(14);
                            color: #ffffff;
                            border: 1px solid #c1c1c1;
                            padding: r(0) r(9);
                            text-align: center;
                            line-height: r(28);
                        }
                    }
                    .stars {
                        margin-top: r(2);
                        display: flex;
                        justify-content: center;
                        color: #eeca02;
                        margin-bottom: r(2);
                        i {
                            margin-right: r(12);
                            &:last-child {
                                margin-right: r(0);
                            }
                        }
                    }
                }
                .PayAttentionTo {
                    @include duiq;
                    font-size: r(23);
                    width: r(196);
                    margin: 0 auto;
                    color: #ffffff;
                    .PayAttentionTo_box {
                        color: #ffffff;
                    }
                    .PayAttentionTo_TheNumberof {
                        color: #b60005;
                    }
                    .fans {
                        color: #ffffff;
                    }
                    .fans_TheNumberof {
                        color: #b60005;
                    }
                }
                .search_content_box_bot {
                    width: r(460);
                    margin: 0 auto;
                    @include duiq;
                    margin-top: r(22);
                    .collect {
                        width: r(220);
                        height: r(52);
                        background: #b60005;
                        color: #fff;
                        text-align: center;
                        line-height: r(52);
                        border-radius: r(30);
                    }
                    .PayAttentionTos {
                        width: r(220);
                        height: r(52);
                        background: #cdcdcd;
                        color: #fff;
                        text-align: center;
                        line-height: r(52);
                        border-radius: r(30);
                    }
                }
            }
            .DividingLine {
                width: 100%;
                height: r(24);
                background: #303030;
                margin-top: r(20);
            }
            .link_box {
                width: r(600);
                margin: 0 auto;
                margin-top: r(50);
                input {
                    display: none;
                }
                >ul {
                    width: r(550);
                    margin-left: r(16);
                    li>:nth-child(1) {
                        width: r(550);
                        font-size: r(23);
                        color: #fff;
                        border-bottom: 1px solid #2d2d2d;
                        padding-bottom: r(14);
                        .TheName {
                            float: left;
                        }
                        .TheArrow {
                            float: right;
                        }
                    }
                    >li {
                        width: r(550);
                        font-size: r(23);
                        color: #fff;
                        display: flex;
                        justify-content: space-between;
                        border-bottom: 1px solid #2d2d2d;
                        &:first-child {
                            margin-top: r(52);
                        }
                        &:last-child {
                            border-bottom: none;
                        }
                        >ul {
                            display: none;
                            width: r(432);
                            margin: 0 auto;
                            >li {
                                font-size: r(22);
                                line-height: r(54);
                                text-align: center;
                                border-bottom: 1px solid #2d2d2d;
                                &:last-child {
                                    border-bottom: none;
                                }
                            }
                        }
                    }
                }
            }
            .exit {
                width: r(180);
                height: r(52);
                background: #b60005;
                text-align: center;
                line-height: r(52);
                color: #fff;
                margin: 0 auto;
                border-radius: r(30);
            }
        }
    }
    //横线
    .hengxian {
        & input[type="checkbox"]:checked~.search_content {
            left: 0;
        }
        input {
            display: none;
        }
        .search_content {
            @include transtions;
            width: 100%;
            height: 100%;
            position: fixed;
            top: 0;
            left: 100%;
            bottom: 0;
            background: #f1f1f1;
            z-index: 99;
            .search_content_box {
                width: 100%;
                margin: 0 auto;
                padding-top: r(20);
                background: #1e1e1e;
                .search_content_box_top {
                    width: r(600);
                    margin: 0 auto;
                    display: flex;
                    justify-content: space-between;
                    padding-bottom: r(16);
                    .search_content_box_top_left {
                        width: r(52);
                        height: r(52);
                        overflow: hidden;
                        position: relative;
                        color: #b60005;
                        display: flex;
                        .icon-cha {
                            font-size: r(54);
                            line-height: r(52);
                            text-align: center;
                            position: absolute;
                            z-index: 6;
                        }
                        img {
                            @include imgs;
                        }
                    }
                    .search_content_box_top_right {
                        width: r(520);
                        height: r(52);
                        position: relative;
                        .GIMC_mirror {
                            color: #fff;
                            .icon-fangdajing {
                                height: r(32);
                                font-size: r(40);
                                font-weight: bold;
                                line-height: r(28);
                                position: absolute;
                                top: 0;
                                left: r(16);
                                bottom: 0;
                                margin: auto 0;
                            }
                        }
                        .hengxians {
                            display: block;
                            width: r(520);
                            height: r(52);
                            background: none;
                            border-radius: r(30);
                            color: #fff;
                            border: 2px solid #fff;
                            padding: 0 r(20) 0 r(70);
                        }
                    }
                }
            }
        }
        .hit_box {
            width: r(580);
            margin: 0 auto;
            .hit {
                font-size: r(27);
                color: #211d1d;
                margin-top: r(26);
                margin-bottom: r(14);
            }
            .related {
                ul {
                    display: flex;
                    flex-wrap: wrap;
                    li {
                        height: r(52);
                        border: 1px solid #dedede;
                        line-height: r(52);
                        padding: r(0) r(16);
                        font-size: r(30);
                        color: #8b8b8b;
                        margin: 0 r(8) r(10) 0;
                        background: #fff;
                        &:nth-child(3n){
                            margin-right: r(0);
                        }
                    }
                }
            }
        }
    }
    //导航
    .header {
        width: 100%;
        background: #b20000;
        .header_box {
            width: r(600);
            margin: 0 auto;
            position: relative;
            .hen_box {
                width: r(42);
                height: r(42);
                position: absolute;
                top: 0;
                bottom: 0;
                margin: auto 0;
                left: 0;
                .hen {
                    color: #fff;
                    i{
                        font-size: r(36);
                    }
                }
            }
            .header_Logom {
                padding: r(24) 0;
                .header_Logo {
                    width: r(264);
                    padding-top: 6.833333333333333%;
                    overflow: hidden;
                    position: relative;
                    margin: 0 auto;
                    img {
                        @include imgs;
                    }
                }
            }
            .search_box {
                width: r(36);
                height: r(42);
                position: absolute;
                top: 0;
                bottom: 0;
                margin: auto 0;
                right: 0;
                .search {
                    color: #fff;
                    i{
                        font-size: r(38);
                    }
                }
            }
        }
    }
    //了解省广
    .understand {
        width: 100%;
        margin-top: r(6);
        .understand_box {
            height: r(222);
            width: 100%;
            position: relative;
            overflow: hidden;
            img {
                @include imgs;
            }
        }
    }
    //阿里吗吗
    .AliMother {
        width: r(600);
        margin: 0 auto;
        padding: r(13) 0;
        ul {
            display: flex;
            margin-left: r(10);
            margin-bottom: r(0);
            li {
                height: r(23);
                overflow: hidden;
                padding-right: r(12);
                .AliMother_img {
                    height: r(23);
                    position: relative;
                    overflow: hidden;
                }
                img {
                    @include imgs;
                }
                &:first-child {
                    width: r(125);
                    border-right: 1px solid #e3e3e3;
                }
                &:nth-child(2) {
                    width: r(65);
                    padding-left: r(10);
                }
            }
        }
    }
    //饿了么
    .Hungry {
        padding-top: r(7);
        position: relative;
        .Hungry_img {
            width: 100%;
            height: r(314);
            overflow: hidden;
            position: relative;
            img {
                @include imgs;
            }
        }
        .Hungry_content {
            width: 100%;
            height: r(90);
            position: absolute;
            left: 0;
            bottom: 0;
            background: rgba(0, 0, 0, .5);
            .Hungry_content_box {
                width: r(600);
                margin: 0 auto;
                padding-top: r(20);
                .Hungry_content_top {
                    font-size: r(26);
                    color: #fff;
                    line-height: r(30);
                }
                .Hungry_content_bottom {
                    @include duiq;
                    .Hungry_content_bottom_left {
                        font-size: r(22);
                        color: #fff;
                    }
                    .Hungry_content_bottom_right {
                        font-size: r(18);
                        color: #fff;
                        @include duiq;
                        .Hungry_content_bottom_right_time {
                            font-size: r(18);
                            margin-right: r(20); 
                        }
                        .Hungry_content_bottom_right_watch {
                            i {
                                font-size: r(18);
                                margin-right: r(2);
                            }
                        }
                    }
                }
            }
        }
    }
    //内容
    .content {
        margin-top: r(42);
        a {
            text-decoration: none;
        }
        .content_box {
            width: r(600);
            margin: 0 auto;
            border-bottom: 1px solid #cecece;
            margin-bottom: r(38);
            display: flex;
            justify-content: space-between;
            padding-bottom: r(30);
            .content_left {
                width: r(208);
                height: r(160);
                position: relative;
                overflow: hidden;
                img {
                    @include imgs;
                }
            }
            .content_right {
                width: r(360);
                height: r(160);
                position: relative;
                .content_right_title {
                    font-size: r(26);
                    color: #010101;
                    line-height: r(30);
                    margin-bottom: r(6);
                }
                .content_right_content {
                    font-size: r(22);
                    color: #c5c5c5;
                    line-height: r(28);
                }
                .content_right_time {
                    width: r(380);
                    font-size: r(18);
                    color: #939393;
                    position: absolute;
                    right: 0;
                    bottom: 0;
                    display: flex;
                    justify-content: flex-end;
                    .content_right_time_left {
                        letter-spacing: r(2);
                    }
                    .aixin {
                        font-size: r(18);
                        margin: 0 r(8);
                        i {
                            font-size: r(18);
                        }
                    }
                    .content_right_time_right {
                        i {
                            font-size: r(18);
                            margin-right: r(2);
                        }
                    }
                }
            }
        }
        .ToLoadMore {
            font-size: r(22);
            color: #bbbbbb;
            text-align: center;
            line-height: r(30);
            position: relative;
            top: r(-20);
        }
    }
    .ToLoadMore {
        font-size: r(22);
        color: #bbbbbb;
        text-align: center;
        line-height: r(60);
        border-top: 1px solid #e6e6e6;
        margin-top: r(20);
    }
    //底部
    .footer {
        width: 100%;
        position: fixed;
        bottom: 0;
        background: #f5f5f5;
        border-top: 1px solid #bbb9ba;
        a {
            text-decoration: none;
        }
        .footer_box {
            width: r(600);
            height: r(96);
            margin: 0 auto;
            ul {
                display: flex;
                justify-content: space-between;
                li {
                    box-sizing: border-box;
                    width: r(120);
                    height: r(50);
                    border-right: 1px solid #ededed;
                    margin-top: r(20);
                    .footer_img {
                        width: r(70);
                        height: r(44);
                        margin: 0 auto;
                        position: relative;
                        overflow: hidden;
                        top: r(-8);
                        img {
                            @include imga;
                        }
                    }
                    span {
                        display: block;
                        text-align: center;
                        font-size: r(18);
                        color: #8b8b8b;
                    }
                    &:last-child {
                        border: none;
                    }
                }
            }
        }
    }
}